package com.dongdongshop.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.mapper.TbAreasMapper;
import com.dongdongshop.pojo.TbAreas;
import com.dongdongshop.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description
 * @ClassName AreaServiceImpl
 * @Author RC
 * @date 2020.12.22 20:31
 */
@Component
@Service
public class AreaServiceImpl implements AreaService {
    @Autowired
    private TbAreasMapper tbAreasMapper;

    @Override
    public List<TbAreas> getAreaListByCityId(Integer cityid) {
        return tbAreasMapper.getAreaListByCityId(cityid);
    }

    @Override
    public List<TbAreas> getInfoAll() {
        return tbAreasMapper.selectByExample(null);
    }
}
